// 第三方
@import "~swiper/dist/css/swiper.min.css";

$item-width: 274px;
$item-distance: 50px;

.loginContainer {
    .el-input__inner {
        width: 100%;
        border-top-width: 0px;
        border-left-width: 0px;
        border-right-width: 0px;
        border-bottom-width: 1px;
        /*outline: medium;*/
    }

    img {
        width: 100%;
        height: 100%;
    }

    // demo1
    &>.login {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        background: white;
        overflow: hidden;
        background: #e9f6ff url("../../assets/LoginImg/login_bkg.png") no-repeat;
        background-size: 100% 100%;
        display: flex;
        justify-content: center;
        align-items: center;

        .login-nav-box {
            position: fixed;
            top: 0;
            display: none;
            width: 100%;
            height: 44px;
            line-height: 44px;
            text-align: center;
            color: #2e384d;
            font-size: 15px;
            background: #fff;
            box-shadow: 0 2px 6px 0 rgba(12, 22, 81, 0.05);
        }

        .login-box {
            width: 53.4%;
            min-width: 330px;
            margin: 0 auto;
            margin-top: -37px;

            .login-title {
                font-size: 22px;
                color: #3d3e70;
                line-height: 30px;
                margin-bottom: 9px;
                text-align: center;
            }
        }

        .login-cont {
            display: flex;
            background: #fff;

            .swiper-pagination {
                bottom: 20px;
            }

            .swiper-container-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet {
                border-radius: 0;
                width: 12px;
                height: 2px;
            }

            .swiper-pagination-bullet-active {
                background: #fff;
            }
        }

        .swiper-container {
            flex: 0 0 41.7%;
            margin: 0;
            min-width: 305px;

            .swiper-slide {
                width: 100%;

                img {
                    min-width: 305px;
                }
            }
        }

        .login-r-box {
            padding: 15px 6.2%;
            min-width: 355px;
            box-sizing: border-box;
            background: #fff;
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;

            .login-r-title {
                text-align: center;
                color: #4f65fe;
                font-size: 28px;
                line-height: 40px;
                margin-bottom: 38px;
            }

            .form-item {
                margin: 0 $item-distance 18px 0;
                align-items: center;
                width: $item-width;
                height: 32px;
                font-size: 0;
                white-space: nowrap;

                .identfy-code {
                    position: relative;

                    &-img {
                        position: absolute;
                        right: 0;
                        bottom: 0;
                        width: 100px;
                        height: 40px;
                        cursor: pointer;
                    }
                }
            }

            .remember-pwd {
                margin-top: 15px;
                font-size: 14px;

                .remember-text {
                    margin-left: -8px;
                    color: #606266;
                }

                .el-checkbox__inner {
                    border: 1px solid #4f65fe;
                    margin-right: 3px;
                }
            }

            .login-btn {
                margin-top: 38px;

                .btn {
                    width: 100%;
                }
            }
        }

        .el-form-item {}

        .npm-com-bg-input__inner {
            border: none;
            border-bottom: 1px solid #dcdfe6;
            padding: 0;
        }

        .el-tabs__nav {
            width: 100%;
        }

        .el-tabs__nav-wrap::after {
            width: 0;
        }
    }
}

@media only screen and (max-width: 640px) {
    .loginContainer {

        // demo1
        &>.login {
            background: #fff;

            .login-box {
                width: 53.4%;

                .login-title {
                    display: none;
                }

                .login-r-box {
                    .login-r-title {
                        display: block;
                        text-align: left;
                    }
                }
            }

            .login-nav-box {
                display: block;
            }

            .swiper-container {
                display: none;
            }

            .login-r-box {
                .login-btn {
                    margin-top: 15px;
                    padding-bottom: 15px;
                }

                .login-r-title {
                    font-size: 20px;
                    padding-top: 20px;
                    margin-bottom: 0;
                }
            }
        }
    }
}

// 小屏
@media only screen and (min-width: 640px) and (max-width: 960px) {
    .loginContainer {

        // demo1
        &>.login {
            .login-box {
                width: 53.4%;
            }

            .swiper-container {
                display: none;
            }

            .login-r-box {
                .login-btn {
                    margin-top: 15px;
                    padding-bottom: 15px;
                }
            }
        }
    }
}

// 中屏
// @media only screen and (min-width: 1024px) and (max-width: 1440px) {}
// 大屏
@media only screen and (min-width: 1440px) and (max-width: 1640px) {
    .loginContainer {
        &>.login {
            .login-box {
                .login-title {
                    font-size: 24px;
                    line-height: 33px;
                    margin-bottom: 13px;
                }
            }

            .login-cont {
                .login-r-box {
                    .llogin-r-title {
                        font-size: 33px;
                        line-height: 45px;
                        margin-bottom: 45px;
                    }
                }
            }
        }
    }
}

@media only screen and (min-width: 1640px) {
    .loginContainer {
        &>.login {
            .login-box {
                .login-title {
                    font-size: 26px;
                    line-height: 37px;
                    margin-bottom: 18px;
                }
            }

            .login-cont {
                .login-r-box {
                    .login-r-title {
                        font-size: 36px;
                        line-height: 50px;
                        margin-bottom: 50px;
                    }
                }
            }
        }
    }
}